package com.ryan.quartz.temp.factory;

/**
 * @author Rayn on 2017/10/29.
 * @email liuwei412552703@163.com.
 */
public class SimplePizzaFactory {


    /**
     * @param type
     */
    public static Pizza create(String type) {
        Pizza pizza = null;

        if (type.equalsIgnoreCase("veggle")) {
            pizza = new VegglePizza();
        } else if(type.equalsIgnoreCase("clam")){
            pizza = new ClamPizza();
        }
        return pizza;
    }
}
